// 玩家功法表
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.Types.ObjectId;

const UserSkillsSchema = new Schema({
    user: {
        type: ObjectId,
        ref: "User"
    },
    skill: {
        type: ObjectId,
        ref: "Skills"
    },
    school_skill: {
        type: ObjectId,
        ref: "Skills"
    }
});

module.exports = User_skill = mongoose.model("userskill", UserSkillsSchema);